<template>

   
</template>

<script>
import { useUserStore } from '@/store';
import { getCookie, delCookie } from '@/utils/base.js';
const {
  setToken,
  setUser,
  setSocketUrl
} = useUserStore();
export default {
  data() {
    return {};
  },
  created() {
    const token = getCookie('targetServiceToken');
    setToken(token);
    const userInfo = getCookie('targetUserInfo');
    const socketUrl = getCookie('socketUrl');
    setUser(JSON.parse(userInfo));
    setSocketUrl(socketUrl);
    delCookie('targetServiceToken');
    delCookie('targetUserInfo');
    delCookie('socketUrl');
    this.$router.replace("/service/index");
  },
  methods: {}
};
</script>

